<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{fragments/main_layout}">
<head>
    <meta charset="UTF-8">
    <title>注册表单</title>
</head>
<body>
<div layout:fragment="content" class="container">
    <div class="alert alert-danger" th:if="${param.error}">
        <h2>无效的用户和密码</h2>
    </div>
    <div class="jumbotron">
        <form th:action="@{/login}" method="post">
            <div class="form-group">
                <label for="email" class="form-control-label">电邮</label>
                <input type="text" class="form-control" id="email" name="username">
            </div>
            <div class="form-group">
                <label for="password" class="form-control-label">密码</label>
                <input type="password" class="form-control" id="password" name="password">
            </div>
            <input type="submit" value="提交" class="btn btn-primary">
        </form>
    </div>
</div>
</body>
</html>